package org.lex.ftp.ui.actions;

import java.awt.event.ActionEvent;
import javax.swing.JOptionPane;

import org.lex.ftp.FTP;
import org.lex.swing.ActionBuilder;


public class FTPAction extends ActionBuilder {
	protected final FTP app;

	public FTPAction(FTP app) {
		this.app = app;
	}

	public void actionPerformed(ActionEvent e) {
		JOptionPane.showMessageDialog(app.getRootWindow(), "Not implemented yet", this.getName(), JOptionPane.INFORMATION_MESSAGE);
	}

	protected boolean confirm(String title, String message) {
		int opt = JOptionPane.showConfirmDialog(app.getRootWindow(), message, title, JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE);
		return JOptionPane.YES_OPTION == opt;
	}
}
